package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;

/**
 * @author CaiZhiMin
 * @created 2025/10/19 16:44
 * @description: 异常抛出工具类
 */
public class Exceptions {

    /**
     * 抛出业务异常
     *
     * @param code 枚举接口
     */
    public static void cast(Code code) {
        throw new StockException(code);
    }

}
